package com.design03_behavioral.pattern13_observer.example03;

import com.design03_behavioral.pattern13_observer.example02.LotteryResult;

/**
 * @ClassName MessageEventListener
 * @Description 短信发送事件
 * @Author zhangjunhao
 * @DATE 2023/9/6 21:53
 */
public class MessageEventListener implements EventListener  {


    @Override
    public void doEvent(LotteryResult result) {
        System.out.println("发送短信通知用户ID为: " +
                result.getuId() +
                ",您的摇号结果如下: " + result.getMsg());
    }
}
